package com.springboot.framework.entity;

import com.alibaba.fastjson.JSON;
import com.springboot.framework.mvc.mapper.annotation.Column;
import com.springboot.framework.mvc.mapper.annotation.Id;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
public class BaseEntity implements Serializable {
    @Id
    private Integer id;
    @Column
    private Integer createBy;
    @Column
    private String createOn;
    @Column
    private Integer updateBy;
    @Column
    private String updateOn;

    @Override
    public String toString(){
        return JSON.toJSONString(this);
    }
}
